<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增直付通二级商户进件')" />
    <th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-aliZftMerchantInfo-add">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">服务商：</label>
                <div class="col-sm-8">
                    <select name="isvId"  class="form-control" th:with="qryIsvInfo=${qryIsvInfo},type=${@isvInfo.selectTIsvInfoList(qryIsvInfo)}" required>
                        <option value="">所有</option>
                        <option th:each="dict : ${type}" th:text="${dict.isvName}" th:value="${dict.id}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">二级商户名称：</label>
                <div class="col-sm-8">
                    <input name="name" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">签约支付宝账户：</label>
                <div class="col-sm-8">
                    <input name="bindingAlipayLogonId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">商户别名：</label>
                <div class="col-sm-8">
                    <input name="aliasName" class="form-control" type="text" placeholder="商户别名" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">联系人名字：</label>
                <div class="col-sm-8">
                    <input name="contactName" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">手机号：</label>
                <div class="col-sm-8">
                    <input name="contactMobile" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">默认结算类型：</label>
                <div class="col-sm-8">
                    <select name="defaultSettleType" class="form-control">
                        <option value="alipayAccount">结算到支付宝账号</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">结算支付宝账号：</label>
                <div class="col-sm-8">
                    <input name="alipayLogonId" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商户使用服务：</label>
                <div class="col-sm-8">
                    <select name="service" class="form-control">
                        <option value="wap支付">wap支付</option>
                    </select>
                </div>
            </div>
            <div id="site_div">
                <div class="form-group">
                    <label class="col-sm-3 control-label">网站类型：</label>
                    <div class="col-sm-8">
                        <select name="siteType" class="form-control">
                            <option value="01">网站</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">站点地址：</label>
                    <div class="col-sm-8">
                        <input name="siteUrl" class="form-control" value="" type="text" placeholder="www.xxx.com" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">站点名称：</label>
                    <div class="col-sm-8">
                        <input name="siteName" class="form-control" value="" type="text" placeholder="XXX网站" required>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">商户类别码：</label>
                <div class="col-sm-8">
                    <input name="mcc" class="form-control" value="B0114" type="text" placeholder="默认为BO114" required>
                    <a href="https://mdn.alipayobjects.com/huamei_fctrxv/afts/file/A*3TMHRZ8ppa4AAAAAAAAAAAAADs2DAQ/%E8%BF%9B%E4%BB%B6MCC%E4%B8%8E%E8%B5%84%E8%B4%A8%E8%A6%81%E6%B1%82202212.xlsx">进件MCC与资质要求202212.xlsx</a>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: select2-js" />
    <script th:inline="javascript">
        var prefix = ctx + "business/aliZftMerchantInfo"
        $("#form-aliZftMerchantInfo-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-aliZftMerchantInfo-add').serialize());
            }
        }
    </script>
</body>
</html>